//
//  WMPhotoCache.h
//  WeightMaster
//
//  Created by sungeo on 15/9/1.
//  Copyright (c) 2015年 buddysoft. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "BDiCloudManager.h"

extern NSString * const PhotoDownloadedNote;

@interface WMPhotoCache : NSObject<BDiCloudDelegate>

@property BOOL isSyncingToICloud;   // 原子模式
@property (nonatomic, weak) id<BDiCloudDelegate> delegate;

+ (instancetype)sharedInstance;

- (BOOL)addImage:(UIImage *)image withUUID:(NSString *)uuid;
- (UIImage *)imageWithUUID:(NSString *)uuid;
- (void)deleteImageWithUUID:(NSString *)uuid;

@end
